package com.xc.tjise.TJISE.day05;

public class Scope {

    private double d=1D;

    public void method(boolean b) {
        this.i = 1;
    }

    private int i;

    public void method1() {
        double d = 1D;//变量声明之处
        d = 2D;
        System.out.println(this.d);
        for (int j = 0; j < 10; j++) {
            // System.out.println(j);
        }//块结束之处
        for (int j = 0; j < 10; j++) {
           //  System.out.println(j);
         /*for (int j=0;j<10;j++){
             System.out.println(j);      不会报错
            */
        }

    }

    public static void main(String[] args) {
        Scope s= new Scope();
        s.method1();
    }
}
